<style>.panel-body,.panel-footer{background-color: #fff;box-shadow: 4px 4px 15px #eee;}.lli {font-family: 'Microsoft YaHei',微软雅黑,'MicrosoftJhengHei',华文细黑,STHeiti,MingLiu;font-size: 20px;color: #f00;border-bottom: 2px #f00 dashed;width: 165px;}</style>

<div class="layui-container">

<blockquote class="layui-elem-quote" style="border-left-color: #f00;background-color: #fff;">
	搜索关键字：<span id="test"><?php $l = $_GET['name'];echo htmlspecialchars($l);?></span>
</blockquote>
<a href="./" class="btn" style="color:#888">
	<i class="layui-icon" style="color: #f00">&#xe65a;</i>  
</a>
<div class="row" ng-app="myApp" ng-controller="siteCtrl">

<div ng-repeat="x in names" class="col-xs-12 col-sm-6">
	<div class="panel-body">
		<li class="lli">{{x.name1}} <img src="assets/img/love.png" width="30px"> {{x.name2}}</li><br>
		<h4>{{x.info}}</h4>
		<span style="float: right;color:#888">{{x.time}}</span>
	</div>
	 <div class="panel-footer" style="background-color: #fff;">
	 	<a class="btn" href="api.php?s=like&id={{x.Id}}">
	 		<i class="layui-icon" style="color: #f00" id="p"> &#xe6c6; {{x.s}}</i>  
		</a>
		<a href="s.php" class="btn" style="float: right;color:#888">
	 		<i class="layui-icon" style="color: #f00">&#xe641;</i>  
		</a>
	 </div><br>
</div> <!-- END -->
</div>
</div>
<script>

var app = angular.module('myApp', []);

app.controller('siteCtrl', function($scope, $http) {
  $http({
    method: 'GET',
    url: 'api.php?s=search&name='+$("#test").text()
      }).then(function successCallback(response) {
      $scope.names = response.data.data;
    }, function errorCallback(response) {
      alert("此条链接可能已到期！");
  });
});


</script>

</body>
</html>
</body>
</html>